/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.gov.cemaden.pcd.model.pcds;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author alan
 */
@Entity
@Table(name="pcds_estacao",schema="pcds")
public class Estacao implements Serializable{
    @Id
    @Column(name="id_estacao",nullable=false,unique=true)
    private Long id;
    
    @Column(name="codestacao")
    private String codestacao;
    
    @Column(name="longitute")
    private Double longitude;
    
    @Column(name="latitude")
    private Double latitude;
    
    @Column(name="nome")
    private String nome;
    
    @Column(name="status")
    private Short status;
    
    @Column(name="id_municipio")
    private Integer idMunicipio;
    
    @Column(name="id_posicao")
    private Integer idPosicao;
    
    @Column(name="id_rede")
    private Integer idRede;
    
    @Column(name="id_tipoestacao")
    private Integer idTipoEstacao;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    
}
